<!--%import("./css/widget.css")-->

<!--%import("./filter/login.xml")-->
<!--%import("./filter/openid_login.xml")-->
<!--%import("./js/login.js")-->

<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
	<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<div class="widgetContainer<!--@if($colorset=="black")--> black<!--@end-->">
    <!--// XE Login -->
<form id="fo_login_widget" action="./" method="post" ruleset="@login" class="widgetLogin">
	<input type="hidden" name="act" value="member" />
	<input type="hidden" name="act" value="procMemberLogin" />
	<input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" />
    <fieldset>
        <dl>
            <dt><label for="uid">{$lang->user_id} :</label></dt>
            <dd><input name="user_id" type="text" id="uid" class="widgetXeInputText" title="{$lang->user_id}" /></dd>
            <dt><label for="upw">{$lang->password} :</label></dt>
            <dd><input name="password" type="password" id="upw" class="widgetXeInputText" title="{$lang->password}" /></dd>
        </dl>
		<p class="keep">
			<input type="checkbox" name="keep_signed" id="keep_signed" value="Y" />
			<label for="keep_signed">{$lang->keep_signed}</label>
		</p>
        <!--@if($member_config->enable_openid=='Y')-->
        <p><input name="use_open_id" id="use_open_id" type="checkbox" value="Y" onclick="xGetElementById('formLogin').style.display = 'none';xGetElementById('formOpenID').style.display='block';xGetElementById('formOpenID').openid.focus();return false;" class="inputCheck" /><label for="use_open_id">Open ID</label></p>
        <!--@end-->
        <span class="button login"><input name="" type="submit" value="{$lang->cmd_login}" /></span>
		<p class="keep_msg">{$lang->about_keep_warning}</p>
        <ul class="help">
            <li><a href="{getUrl('act','dispMemberSignUpForm')}">{$lang->cmd_signup}</a></li>
            <li><a href="{getUrl('act','dispMemberFindAccount')}">{$lang->cmd_find_member_account}</a></li>
            <li><a href="{getUrl('act','dispMemberResendAuthMail')}">{$lang->cmd_resend_auth_mail}</a></li>
        </ul>
    </fieldset>
    </form>

    <!--// OpenID Login -->
    <!--@if($member_config->enable_openid=='Y')-->
    <form action="{getUrl('module','member','act','procMemberOpenIDLogin')}" method="post" onsubmit="return procFilter(this, openid_login)" id="formOpenID" style="display:none;" class="widgetLogin">
    <dl>
        <dt><label for="OpenID">OpenID :</label></dt>
        <dd><input name="openid" type="text" class="inputText" title="openid" /></dd>
    </dl>
    <p><input name="use_open_id" id="uopenid" type="checkbox" checked="checked" value="Y" onclick="xGetElementById('formLogin').style.display = 'block';xGetElementById('formOpenID').style.display='none';xGetElementById('formLogin').user_id.focus();return false;" class="inputCheck" /><label for="uopenid">Open ID</label></p>
    <span class="button green login"><input name="" type="submit" value="{$lang->cmd_login}" /></span>
    </form>
    <!--@end-->
</div>
